<template>
  <div>
    <van-nav-bar
      title="标题"
      left-text="返回"
      right-text="按钮"
      left-arrow
      @click-left="$router.go(-1)"
    >
    <slot name="left" slot="left" ></slot>
    <slot name="title" slot="title"></slot>
    <slot name="right" slot="right"></slot>
    </van-nav-bar>
  </div>
</template>

<script>
export default {
  data() {
    return {}
  },

  //方法
  methods: {},

  //挂载后生命周期函数
  mounted() {}
}
</script>

<style lang="scss" scoped>

</style>